package svgedit;

import java.io.File;

import svgedit.gui.Frame;
import svgedit.germangui.GermanFrame;
import svgedit.japangui.JapanFrame;

/** Main program state and program entry point */
public class Main {

    /** Program entry point.  An optional argument will be interpreted as
     *  a file to load on startup. */
    public static void main(String[] args) throws java.io.IOException {
        Frame frame = new Frame();
        GermanFrame germanFrame = new GermanFrame();
        JapanFrame japanFrame = new JapanFrame();
        if (args.length > 0)
            frame.openFile(new File(args[0]));
        frame.setVisible(true);
        frame.setGermanFrame(germanFrame);
        frame.setJapanFrame(japanFrame);
        germanFrame.setVisible(false);
        germanFrame.setEnglishFrame(frame);
        germanFrame.setJapanFrame(japanFrame);
        japanFrame.setVisible(false);
        japanFrame.setEnglishFrame(frame);
        japanFrame.setGermanFrame(germanFrame);
    }

};